	<?php get_header(); ?>
		<?php if(zon_options("zon_option_desc_home") == 1){ ?>
			<div class="index-text">
				<div class="row">
					<h1><?php echo zon_options("zon_option_desc_home_title"); ?></h1>
					<p><?php echo zon_options("zon_option_desc_home_desc"); ?></p>
				</div>
			</div>
		<?php } ?>
		<div id="container" class="row">
			<?php $layout = zon_options('zon_option_home_layout'); ?>
			<?php if($layout == 'left-sidebar'){ $div = 'right-content';} ?>
			<?php if($layout == 'right-sidebar'){ $div = 'left-content';} ?>
			<?php if($layout == 'full-width'){ $div = 'full-content';} ?>
			<div class="content <?php echo $div; ?>">
				<?php require_once(BLOCK_PATH.'/property/zonthemes-block-featured.php'); ?>
				<div class="recent-index">
					<h3 class="h3-title">Most Recent Properties</h3>
					<span class="viewall"><a href="#" title="">view all >></a></span>
					<div class="clear"></div>
					<ul class="pro-list">
						<?php $query = new WP_Query(array('post_type'=>'property','showposts'=>6)); ?>
						<?php if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
							<?php get_template_part('/includes/blocks/zonthemes-block-loop-property'); ?>
						<?php endwhile; endif; ?>
						<div class="clear"></div>
					</ul>
				</div><!--end .recent-index-->

				<div class="recent-index list-layout">
					<h3 class="h3-title">Related Properties</h3>
					<span class="viewall"><a href="#" title="">view all >></a></span>
					<div class="clear"></div>
					<ul class="pro-list">
						<?php $query = new WP_Query(array('post_type'=>'property','showposts'=>3)); ?>
						<?php if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
							<?php get_template_part('/includes/blocks/zonthemes-block-loop-property'); ?>
						<?php endwhile; endif; ?>
						<div class="clear"></div>
					</ul>
				</div><!--end .recent-index-->
				<div class="recent-index">
					<h3 class="h3-title">Related Properties</h3>
					<span class="viewall"><a href="#" title="">view all >></a></span>
					<div class="clear"></div>
					<ul class="pro-list">
						<div id="pro-slider" class="owl-carousel">
						<?php $query = new WP_Query(array('post_type'=>'property','showposts'=>6)); ?>
						<?php if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
							<div class="item">
								<?php get_template_part('/includes/blocks/zonthemes-block-loop-property'); ?>
							</div>
						<?php endwhile; endif; ?>
						<div class="clear"></div>
						</div>
					</ul>
				</div><!--end .recent-index-->
			</div><!--end #content-->
			<?php if($div != 'full-content'){
				get_sidebar();
			} ?>
			<div class="clear"></div>
		</div><!--end #container-->
		<?php require_once(BLOCK_PATH.'/zonthemes-block-slider.php'); ?>
		<!-- include features -->
		<?php require_once(BLOCK_PATH.'/zonthemes-block-features.php'); ?>
		<!-- end include features -->
		
	<?php get_footer(); ?>